﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DesktopGarden;
using DesktopGarden.Classes;
using DesktopGarden.Windows;


    /// <summary>
    /// Interaction logic for FlowerCatalog.xaml
    /// </summary>
    public partial class FlowerCatalog : Window
    {
        public FlowerCatalog()
        {
            InitializeComponent();
            dgFlowers.ItemsSource = App.FlowerCatalog;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            
        }

        private void DoubleClickFlower(object sender, MouseButtonEventArgs e)
        {
            FlowerInstance flower = dgFlowers.SelectedItem as FlowerInstance;

            if (flower != null)
            {
                FlowerEditor editor = new FlowerEditor(flower, false);
                editor.ShowDialog();
            }
        }
    }

